/**
 * @name: userService
 * @Description:
 * @Author: 方琦
 * @Date: 2022/8/17 14:59
 **/
import axios from "../utils/axios";
import api from "../api";

export function User_Login(data) {
    return new Promise((resolve, reject) => {
        axios({
            url: api.userApi.USER_LOGIN,
            method: "post",
            params: data
        }).then(res => {
            resolve(res.data)
        }).catch(err => {
            reject(err);
        })
    })
}

export function User_OutLogin() {
    return new Promise((resolve, reject) => {
        axios({
            url: api.userApi.USER_OUTLOGIN,
            method: "post",
        }).then(res => {
            resolve(res.data);
        }).catch(err => {
            reject(err)
        })
    })
}
